package com.baizhi.entity;

import java.util.List;

public class Category {
    private Integer categoryId;

    private String categoryName;
    //级别
    private Integer levels;
    //父类类别id
    private Category parent;
    //定义一个二级类别的集合
    private List<Category> seconds;

    public Category() {
        super();
    }
    
    public Category(Integer categoryId, String categoryName, Integer levels, Category parent) {
		super();
		this.categoryId = categoryId;
		this.categoryName = categoryName;
		this.levels = levels;
		this.parent = parent;
    }

    
	public List<Category> getSeconds() {
		return seconds;
	}

	public void setSeconds(List<Category> seconds) {
		this.seconds = seconds;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public Integer getLevels() {
		return levels;
	}

	public void setLevels(Integer levels) {
		this.levels = levels;
	}

	public Category getParent() {
		return parent;
	}

	public void setParent(Category parent) {
		this.parent = parent;
	}

	@Override
	public String toString() {
		return "Category [categoryId=" + categoryId + ", categoryName=" + categoryName + ", levels=" + levels
				+ ", parent=" + parent + ", seconds=" + seconds + "]";
	}

	

}